<?php
/*
工作报告
*/
namespace app\shop\route;
use app\shop\validate\company\Report;
use think\facade\Route;
use app\shop\middleware\Auth;
Route::group("report", function () {
    Route::group("tpl", function () {
        Route::get('list', 'company.Report/tplList');        //列表
        Route::post('add', 'company.Report/addTpl')->validate(Report::class, 'addTpl');        //编辑员工
        Route::put('edit', 'company.Report/editTpl')->validate(Report::class, 'editTpl');        //编辑员工
        Route::delete(':id', 'company.Report/deleteTpl')->validate(Report::class, 'info');    //删除
        Route::get(':id', 'company.Report/tplForm')->validate(Report::class, 'info');    //信息表单
    });
})->allowCrossDomain()->middleware([Auth::class]);